package util.tool.javaDoc;

import util.util.DevFileUtil;

import java.io.File;
import java.util.List;

public class GetControllerTitle {
    public static void main(String[] args) {
        String path = "D:\\20project\\stapp\\yuanmao-bidding\\yuanmao-bidding-platform\\src\\main\\java\\com\\yuanmao\\bidding\\controller";
        List<File> fileList = DevFileUtil.getFileList(path);

        for (File file : fileList) {
            String absolutePath = file.getAbsolutePath();
            absolutePath = absolutePath.replace("D:\\20project\\stapp\\yuanmao-bidding\\yuanmao-bidding-platform\\src\\main\\java\\", "")
                    .replace("\\", ".").replace(".java", "");
            Class<?> aClass = null;
            try {
                aClass = Class.forName(absolutePath);
//                Api annotation = aClass.getAnnotation(Api.class);
//                String[] value = annotation.tags();
//                System.out.println(Arrays.toString(value));
                String name = aClass.getSimpleName();
                System.out.println(name);

            } catch (ClassNotFoundException e) {
                System.out.println("");
            }

        }
        
    }
}
